package com.ylp.controller;

import com.ylp.beans.AutoWired;
import com.ylp.service.StudentService;
import com.ylp.web.mvc.Controller;
import com.ylp.web.mvc.RequestMapping;
import com.ylp.web.mvc.RequestParam;

/**
 * @description:
 * @date: 2019/9/13 19:24.
 * @author: yulipeng.
 */
@Controller
public class StudentController {

    @AutoWired
    private StudentService studentService;

    @RequestMapping("/getStudent")
    public String getStudent(@RequestParam("name") String name, @RequestParam("age")String age){

        return studentService.getName(name);
    }
}
